package com.example.anliku.mapper;

import com.example.anliku.entity.TeamMemberNew;
import java.util.List;

import com.example.anliku.entity.teamBody.TeamMemberBody;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeamMemberNewMapper {
    int deleteByPrimaryKey(Integer teamMemberNewId);

    int insert(TeamMemberNew record);

    int insertSelective(TeamMemberNew record);

    TeamMemberNew selectByPrimaryKey(Integer teamMemberNewId);

    int updateByPrimaryKeySelective(TeamMemberNew record);

    int updateByPrimaryKey(TeamMemberNew record);

    int updateBatch(List<TeamMemberBody> list);

    int batchInsert(@Param("list") List<TeamMemberBody> list);

    List<TeamMemberNew> selectAllByTeamNewId(@Param("teamNewId") Integer teamNewId);

    int insertList(@Param("list") List<TeamMemberNew> list);

    List<TeamMemberNew> selectAllByTeamMemberNewUserId(@Param("teamMemberNewUserId") String teamMemberNewUserId);

    int deleteByTeamMemberNewUserId(@Param("teamMemberNewUserId") String teamMemberNewUserId);

    int deleteByTeamNewId(@Param("teamNewId") Integer teamNewId);

    List<Integer> selectTeamNewIdByTeamMemberNewUserId(@Param("teamMemberNewUserId") String teamMemberNewUserId);

    List<String> selectTeamMemberNewUserIdByTeamNewId(@Param("teamNewId") Integer teamNewId);

    List<TeamMemberNew> selectByTeamNewIdAndTeamMemberNewUserId(@Param("teamNewId")Integer teamNewId,@Param("teamMemberNewUserId")String teamMemberNewUserId);

}